<script setup>
// defineProps(['msg'])
defineProps({
  msg: {
    type: String,
    default: '默认值'
  }
})
</script>
<template>
  <div class="child-component">
    <h1>子组件</h1>
    <p>父组件传递的值：{{ msg }}</p>
  </div>
</template>

<style scoped>

</style>